<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../../favicon.ico" rel="shortcut icon" />
<link href="../../base.css" rel="stylesheet" type="text/css" media="screen" />
<script src="../../jquery/jquery.js" type="text/javascript"></script>
<script src="../../event.drag/jquery.event.drag.js" type="text/javascript"></script>
<script src="../../event.drop/jquery.event.drop.js" type="text/javascript"></script>
<title>jquery.event.drop</title>
</head><body>

<a href="./">&laquo; Index</a>

<style type="text/css" media="screen">
.boxdrag {
	position: absolute;
	height: 48px;
	width: 48px;
	background: #CCF;
	border: 1px solid #AAD;
	cursor: move;
	}
#droplist {
	padding: 0;
	margin: 0;
	}
#droplist li {
	list-style-position: inside;
	padding: 5px;
	margin: 5px;
	background: #EEE;
	border: 1px solid #CCC;
	}
#droplist li.dropped {
	background: #AAA;
	color: #EEE;
	}	
#droplist li.active {
	background: #FFC;
	}		
</style>

<script type="text/javascript">
jQuery(function($){
	$('#dragdemo').bind("drag",function( ev, dd ){
		$( this ).css({
			top: dd.offsetY,
			left: dd.offsetX
			});
		});
	$('#droplist li')
		.bind("dropstart",function(){
			$( this ).addClass('active');
			})
		.bind("drop",function(){
			$( this ).toggleClass('dropped');
			})
		.bind("dropend",function(){
			$( this ).removeClass('active');
			});
	$.dropManage({ 
		multi: true,
		mode: "overlap"
		});
	});
</script>

<h2>event.drop / multi</h2>

<div class="boxdrag" id="dragdemo">Drag</div>

<ol id="droplist">
	<li>Athol</li>
	<li>Boston</li>
	<li>Chicopee</li>
	<li>Douglas</li>
	<li>Essex</li>
	<li>Falmouth</li>
	<li>Gloucester</li>
	<li>Harvard</li>
	<li>Ipswitch</li>
	</ol>

</body></html>